﻿using System.Collections.Generic;
using System.Text;

namespace Kiva7.Baskets
{
    public class BasketItemList : Dictionary<int, BasketItem>
    {
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("[");

            bool first = true;
            foreach (var item in this)
            {
                if (first)
                    first = false;
                else
                    sb.Append(",");
                sb.Append(item.Value.ToString());
            }

            sb.Append("]");

            return sb.ToString();
        }
    }
}
